package com.bing.services;

import com.bing.bean.weixin.*;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * Created by kaibb on 2014/12/9.
 */
public interface AccountService {

    @Cacheable(value = "accountCache", key = "#url")
    Account findByUrl(String url);

    List<Account> findByTypeAndStatus(AccountType accountType, AccountStatus accountStatus);

    List<User> findUsers(Account account);

    List<Account> findAccounts();

    List<ResponseMessage> findCommands(Account account);
}
